const key = "shopCartList"
export const getShopCartList = () => {
    try {
        return JSON.parse(uni.getStorageSync(key))
    } catch (error) {
        return []
    }
}

export const setShopCartList = (shopCartList) => {
    uni.setStorageSync(key, JSON.stringify(shopCartList))
}
export const removeShopCartList = () => {
    uni.removeStorageSync(key)
}
